专利摘要:
Disclosed is a control method for data transmission that includes receiving a command sent by an SD host and sending the command to a CPU, and the CPU configuring an SD host controller based on the command; receiving data sent by the SD host and sending the data to the SD host controller When the command is a write command, and the SD host controller writing the data to an SD slave; and receiving data sent by the SD host controller and sending the data to the SD host When the command is a read command. The control method for data transmission realize data transmission by virtue of the cooperation of the SD slave controller and the SD host controller in the system on chip, Which can effectively improve the data transmission rate. A control system for data transmission is also disclosed that also has the above technical effects.
公开号:NL2026311A
申请号:NL2026311
申请日:2020-08-20
公开日:2021-04-06
发明作者:Xiao Zuonan;Zheng Jiang;Yin Ping;Kuang Qihe;Wang Zongbao
申请人:Cstarcore Tech Co Ltd;
IPC主号:
专利说明:

CONTROL METHOD AND CONTROL SYSTEM FOR DATA TRANSMISSION
TECHNICAL FIELD The disclosure relates to the field of computer technology, in particular to a control method and a control system for data transmission.
BACKGROUND At present, the data transmission method is a single data block transmission realized by CPU control, which results in a slow data transmission. In order to improve the data transmission rate, the system needs to work at a higher frequency, which will lead to greater power consumption. In addition, when the CPU handles a lot of tasks, its processing efficiency will decrease, thereby affecting the reliability of the system. Therefore, how to increase the data transmission rate has become an urgent technical problem to be solved by those skilled in the art.
SUMMARY The present disclosure is to provide a control method and a control system for data transmission that can effectively improve a data transmission rate.
To solve the above problem, a control method for data transmission is provided that includes receiving a command sent by an SD host and sending the command to a CPU, and the CPU configuring an SD host controller based on the command; receiving data sent by the SD host and sending the data to the SD host controller when the command is a write command, and the SD host controller writing the data to an SD slave; and receiving data sent by the SD host controller and sending the data to the SD host when the command is a read command.
Optionally, the step of receiving data sent by the SD host and sending the data to the SD host controller when the command is a write command includes receiving the data sent by the SD host and sending the data directly to the SD host controller, if the command is a write command and a transmission mode is a pass-through mode; and receiving the data sent by the SD host and sending the data to the SD host controller through a SRAM and a DMA encryption and decryption device, if the command is a write command and the transmission mode is an encryption mode. Optionally, the step of receiving data sent by the SD host controller and sending the data to the SD host when the command is a read command includes receiving the data sent by the SD host controller directly and sending the data to the SD host, if the command is a read command and a transmission mode is a pass-through mode; and receiving the data sent by the SD host controller through a SRAM and a DMA encryption and decryption device and sending the data to the SD host, if the command is a read command and the transmission mode is an encryption mode.
Optionally, the method further includes determining whether a stop command is received and ending read and write operations if the stop command is received.
To solve the above problem, a control system for data transmission is also provided that includes an SD slave controller, an SD host controller and a CPU. The SD slave controller is configured to receive a command sent by an SD host and send the command to the CPU. The CPU configures the SD host controller based on the command. The SD slave controller is configured to receive data sent by the SD host and send the data to the SD host controller when the command is a write command. The SD host controller writes the data to an SD slave. The SD slave controller is configured to receive data sent by the SD host controller and send the data to the SD host when the command is a read command.
Optionally, the SD slave controller is configured to receive the data sent by the SD host and send the data directly to the SD host controller, if the command is a write command and a transmission mode is a pass-through mode, and configured to receive the data sent by the SD host and send the data to the SD host controller through a SRAM and a DMA encryption and decryption device, if the command is a write command and the transmission mode is an encryption mode.
Optionally, the SD slave controller is configured to receive the data sent by the SD host controller directly and send the data to the SD host, if the command is a read command and a transmission mode is a pass-through mode, and configured to receive the data sent by the SD host controller through a SRAM and a DMA encryption and decryption device and send the data to the SD host, if the command is a read command and the transmission mode is an encryption mode.
Optionally, the SD host controller is further configured to determine whether a stop command is received, and if received, end data read and write operations.
The control method for data transmission provided by the present disclosure includes receiving a command sent by an SD host and sending the command to a CPU, and the CPU configuring an SD host controller based on the command; receiving data sent by the SD host and sending the data to the SD host controller when the command is a write command, and the SD host controller writing the data to an SD slave; and receiving data sent by the SD host controller and sending the data to the SD host when the command is a read command. It can be appreciated that, according to the control method for data transmission provided by the disclosure, when writing data, the SD slave controller receives data sent by the SD host and sends the data to the SD host controller, and the SD host controller further writes data to the SD slave. When reading data, the SD slave controller receives data sent by the SD host controller and sends the data to the SD host. The control method for data transmission realize data transmission by virtue of the cooperation of the SD slave controller and the SD host controller in the system on chip, which can effectively improve the data transmission rate. The control system for data transmission provided by the disclosure also has the above technical effects.
BRIEF DESCRIPTION OF THE DRAWINGS To more clearly describe the technical solutions in the embodiments of the present disclosure, the drawings that are required in the description of the prior art and the embodiments will be briefly described. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and a person skilled in the art can further obtain other drawings according to these drawings without inventive effort. FIG. 1 is a schematic flowchart of a control method for data transmission control method according to an embodiment of the disclosure. FIG. 2 is a schematic diagram of a control system for data transmission control method according to an embodiment of the disclosure.
DETAILED DESCRIPTION OF THE EMBODIMENTS The disclosure is mainly to provide a control method and a control system for data transmission, which can effectively improve a data transmission rate.
Technical solutions of the present disclosure will be clearly and completely described below with reference to the accompanying drawings. Apparently, the embodiments described are some, rather than all, of embodiments of the present disclosure. All other embodiments obtainable by a person skilled in the art on the basis of the embodiments in the present disclosure shall fall within the scope of the present disclosure.
FIG. 1 is a schematic flowchart of a control method for data transmission according to an embodiment of the present disclosure.
Referring to FIG. 1, the control method for data transmission inclades: Step S101: receiving a command sent by an SD host and sending the command to a CPU, and the CPU configuring an SD host controller based on the command; Specifically, after the CPU enables an SD slave controller and the SD host controller, the SD slave controller and the SD host controller enter into a ready state for transmission.
When the SD slave controller in the ready state for transmission receives the command sent by the SD host, the SD slave controller informs the CPU of the command, so that the CPU configures the SD host controller.
Specifically, when the command is a write command, the CPU configures the data address of the SD host controller to be a buffer area of the SD slave controller, so that the SD host controller sends a multiple data block write command to the SD slave.
When the command is a read command, the CPU configures the destination address of the SD host controller to be the SD slave controller, so that the SD host controller sends a multiple data block read command to the SD slave.
Step S102: receiving data sent by the SD host and sending the data to the SD host controller, and the SD host controller writing the data to an SD slave when the command is a write command; Specifically, upon the configuration of the SD host controller by the CPU, the SD slave controller receives data sent by the SD host and further sends the data to the SD host controller, and the SD host controller writes the data to the SD slave when the command sent by the SD host is a write command.
In a specific embodiment, when the command is a write command, the step of receiving data sent by the SD host and sending the data to the SD host controller may include: receiving the data sent by the SD host and sending the data directly to the SD host controller if the command is a write command and the transmission mode is a pass-through mode, and receiving the data sent by the SD host and sending the data to the SD host controller through a SRAM (Static Random Access Memory) and a DMA (Direct Memory Access) encryption and decryption device if the command is a write command and the transmission mode is encrypted mode.
Specifically, in this embodiment, the control methods for data transmission differ for different transmission modes when writing data.
If the transmission mode is the pass-through mode, the SD slave controller receives the data sent by the SD host and directly sends the data to the SD host controller, so that the SD host controller further writes the data to the SD slave. If the transmission mode is encryption and decryption mode, the data sent by the SD host is received and sent to the SD host controller through the SRAM and the DMA encryption and decryption device.
5 Specifically, the SD slave controller receives the data sent by the SD host and stores the data in the built-in buffer area, and sends a request to the DMA encryption and decryption device according to the state of the buffer area to write the data to an address space in the SRAM through the DMA encryption and decryption device. The SD host controller waits for a batch of data in the SRAM to be ready and sends it to the SD slave. At the same time, the SD slave controller can receive the next batch of data sent by the SD host, and write the data to another address space in the SRAM through the DMA encryption and decryption device. In this way, several address spaces in the SRAM receive data in turn, and the SD host controller writes the data in the address spaces of the received data to the SD slave.
Step S103: receiving data sent by the SD host controller and sending the data to the SD host when the command is a read command.
Specifically, upon the configuration of the SD host controller by the CPU, when the command sent by the SD host is a read command, the SD slave controller receives the data sent by the SD host controller which is read from the SD slave to the SD host controller, and send the data to the SD host.
In a specific embodiment, the step of receiving data sent by the SD host controller and sending the data to the SD host when the command is a read command may include: receiving the data sent by the SD host controller directly and sending the data to the SD host, if the command is a read command and a transmission mode is a pass-through mode, and receiving the data sent by the SD host controller through a SRAM and a DMA encryption and decryption device and sending the data to the SD host, if the command is a read command and the transmission mode is an encryption mode.
Specifically, for different transmission modes, this embodiment provides two control methods for data transmission when reading data, If the transmission mode is pass-through mode, the SD slave controller directly receives the data from the SD host sent by the SD host controller. That is, the SD host controller and the SD slave controller perform data transmission directly, and further read the received data to the SD host. If the transmission mode is the encryption and decryption mode, the SD slave controller receives data from SD slave sent by the SD host controller through the
SRAM and the DMA encryption and decryption device. Specifically, the SD host controller receives the data from the SD slave and writes the received batch of data to an address space in SRAM. After the batch of data is written to the SRAM, the DMA encryption and decryption device further writes the data in SRAM to the built-in buffer area of the SD slave controller constantly, and then the SD slave controller sends the data to the SD host. Further, the method may further include: the SD slave controller determining whether a stop command is received, and if the stop command is received, ending read and write operations. Specifically, the SD slave controller can also determine in real time whether a stop command sent by the SD host is received during the read operation or write operation described in the above embodiment, and if received, the stop command is also sent to the CPU, so that the CPU configures the SD host controller to send a stop command to the SD slave to end the current read operation or write operation.
In summary, according to the control method for data transmission provided in the disclosure, when writing data, the SD slave controller receives data sent by the SD host and sends the data to the SD host controller, and SD host controller further writes the data to the SD slave. When reading the data, the SD slave controller receives the data sent by the SD host controller and sends the data to the SD host. The control method for data transmission realize data transmission by virtue of the cooperation of the SD slave controller and the SD host controller in the system on chip, which can effectively improve the data transmission rate.
The present disclosure also provides a control system for data transmission. The system described below can be cross-referenced with the method described above. Referring to FIG. 2, the control system for data transmission includes an SD slave controller, an SD host controller and a CPU. The SD slave controller is configured to receive a command sent by the SD host and send the command to the CPU, so that the CPU configures the SD host controller based on the command. When the command is a write command, the data sent by the SD host is received and sent to the SD host controller, so that the SD host controller writes data to an SD slave. When the command is a read command, the received data sent by the SD host controller is read to the SD host.
Based on the above embodiment, as a specific implementation, the SD slave controller is specifically configured to receive the data sent by the SD host and send the data directly to the SD host controller, if the command is a write command and a transmission mode is a pass-through mode, and receive the data sent by the SD host and send the data to the SD host controller through a SRAM and a DMA encryption and decryption device, if the command is a write command and the transmission mode is an encryption mode. Based on the above embodiment, as a specific implementation, the SD slave controller is specifically configured to receive the data sent by the SD host controller directly and send the data to the SD host, if the command is a read command and a transmission mode is a pass-through mode, and receive the data sent by the SD host controller through a SRAM and a DMA encryption and decryption device and send the data to the SD host, if the command is a read command and the transmission mode is an encryption mode.
Based on the above embodiment, as a specific implementation, the SD host controller is further configured to determine whether a stop command is received, and if received, end data read and write operations.
According to the control system for data transmission provided by the disclosure, when writing data, the SD slave controller receives the data sent by the SD host and sends the data to the SD host controller, so that the SD host controller further writes data to the SD slave. When reading data, the SD slave controller receives the data sent by the SD host controller and sends the data to the SD host. The control method for data transmission realize data transmission by virtue of the cooperation of the SD slave controller and the SD host controller in the system on chip, which can effectively improve the data transmission rate.
Each embodiment in the specification is described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same and similar modules between the embodiments may refer to each other.
Those skilled in the art will appreciate that, the units and steps of the algorithms described in the embodiments disclosed herein can be implemented in electronic hardware, computer sof{ware, or a combination thereof. A general description of components and steps of the embodiments has been provided above in terms of their functionalities in order to clearly illustrate the interchangeability between hardware and software. Whether the functionalities are to be implemented in hardware or software depends on specific applications and design constramts of the technical solution. Different methods can be employed by those skilled in the art for any specific application so as to implement the described functionalities, and such implementation should not be considered as beyond the scope of the present disclosure.
The methods and the steps of the algorithms described in the embodiments disclosed herein can be implemented directly in hardware, in software modules executed by a processor, or a combination thereof.
The software modules can be provided in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a hard drive, a
CD-ROM, or any other forms of storage media known in the art.
Descriptions of a control method and a control system for data transmission according to the present discourse are provided in detail.
The principle and implementation of the disclosure are illustrated herein by way of examples merely for the purpose of facilitating an understanding of the method of the disclosure and the key concept thereof. it should be noted that, for an ordinary person skilled in the art, variations and modifications can be made to the present disclosure in accordance with the spirit of the disclosure.
All these variations and modifications fall into the scope of the disclosure.
权利要求:
Claims (8)
[1]
A data transmission control method, comprising: receiving a command sent from an SD host and sending the command to a CPU, and wherein the CPU configures an SD host controller based on the command; receiving data sent from the SD host and sending the data to the SD host controller when the command is a write command, and wherein the SD host controller writes the data to an SD slave; and receiving data sent from the SD host controller and sending the data to the SD host when the command is a read command.
[2]
The data transmission control method of claim 1, wherein the step of receiving data sent from the SD host and sending the data to the SD host controller when the command is a write command comprises: receiving the data sent from the SD host transmitted data and sending the data directly to the SD host controller if the command is a write command and a transmission mode is a flow mode; and receiving the data sent from the SD host and sending the data to the SD host controller via a SRAM and a DMA encoding and decoding device, if the command is a write command and the transmission mode is an encryption modas.
[3]
The data transmission control method of claim 1, wherein the step of receiving data sent from the SD host controller and sending the data to the SD host when the command is a read command comprises: directly receiving the data sent from the SD host controller transmitting data and sending the data to the SD host, if the command is a read command and a transmission mode is a flow mode; and receiving the data sent from the SD host controller via a SRAM and a DMA encoding and decoding device, and sending the data to the SD host, if the command is a read command and the transmission mode is an encryption mode.
[4]
The data transmission control method of claim 1, further comprising: determining whether a stop command has been received; and ending reading and writing activities when the stop command is received.
[5]
5. A data transmission control system comprising an SD slave control device, an SD host control device and a CPU, the SD slave control device being adapted to receive a command sent from an SD host and send the command to the CPU, wherein the CPU Configure SD host control device based on the command; wherein the SD slave controller is configured to receive data sent from the SD host and send the data to the SD host controller when the command is a write command, the SD host controller writing the data to an SD slave; and wherein the SD slave controller is configured to receive data sent from the SD host controller and send the data to the SD host when the command is a read command.
[6]
The data transmission control system of claim 5, wherein the SD slave control device is arranged to receive the data transmitted from the SD host and send the data directly to the SD host control device, if the command is a write command and a transmission mode is a flow mode. is; and wherein the SD slave controller is configured to receive the data transmitted from the SD host and send the data to the SD host controller via a SRAM and a DMA encoding and decoding device, if the command is a write command and the transmission mode is an encryption mode is.
[7]
The data transmission control system of claim 5, wherein the SD slave control device is arranged to directly receive the data transmitted from the SD host control device and send the data to the SD host, when the command is a read command and a transmission mode is a pass-through mode. is; and wherein the SD slave controller is configured to receive the data sent from the SD host controller through a SRAM and a DMA encoding and decoding device and sending the data to the SD host, if the command is a read command and the transmission mode is an encryption mode.
[8]
The data transmission control system of claim 5, wherein the SD host controller is further configured to determine whether a stop command has been received and, if received, to terminate data read and write activities.
类似技术:
公开号 | 公开日 | 专利标题
US9110669B2|2015-08-18|Power management of a storage device including multiple processing cores
US7512743B2|2009-03-31|Using shared memory with an execute-in-place processor and a co-processor
US10929309B2|2021-02-23|Direct host access to storage device memory space
TWI699646B|2020-07-21|Memory device, memory addressing method, and article comprising non-transitory storage medium
US20140259028A1|2014-09-11|Mechanism for establishing temporary background communication between applications
US20200327258A1|2020-10-15|Apparatus and method of detecting potential security violations of direct access non-volatile memory device
US9489317B2|2016-11-08|Method for fast access to a shared memory
US10671141B2|2020-06-02|Storage device and method of controlling link state thereof
JP5951844B2|2016-07-13|Strongly ordered devices across multiple memory areas and automatic ordering of exclusive transactions
US10459844B2|2019-10-29|Managing flash memory read operations
WO2017148292A1|2017-09-08|Cascade plate, and system and method for ssd remote sharing access
CN103441948A|2013-12-11|Data access method, network card and storage system
WO2018188084A1|2018-10-18|Data access method and device
CN107590099A|2018-01-16|A kind of more main frames access method, expanding unit and the storage medium of slave
NL2026311B1|2021-09-23|Control method and control system for data transmission
US20050256998A1|2005-11-17|Bus bridge device
US9377966B2|2016-06-28|Method and apparatus for efficiently processing storage commands
TW200422845A|2004-11-01|Method and apparatus to transfer information
US10168934B2|2019-01-01|Method and device for monitoring data integrity in shared memory environment
US10585822B2|2020-03-10|Operation method of host system including storage device and operation method of storage device controller
US10739836B2|2020-08-11|System, apparatus and method for handshaking protocol for low power state transitions
US20210173589A1|2021-06-10|Coherent access to persistent memory region range
US11231881B2|2022-01-25|Raid data storage device multi-step command coordination system
US10853255B2|2020-12-01|Apparatus and method of optimizing memory transactions to persistent memory using an architectural data mover
US20200341653A1|2020-10-29|Method, network adapter and computer program product for processing data
同族专利:
公开号 | 公开日
CN110489359A|2019-11-22|
NL2026311B1|2021-09-23|
CN110489359B|2021-05-14|
引用文献:
公开号 | 申请日 | 公开日 | 申请人 | 专利标题
CN100365607C|2004-12-31|2008-01-30|北京中星微电子有限公司|Apparatus and method for controlling SD card interface|
US20110072185A1|2009-09-23|2011-03-24|Sandisk Il Ltd.|Multi-protocol storage device bridge|
CN109447225A|2018-11-27|2019-03-08|公安部第研究所|A kind of high-speed secure encryption Micro SD card|
JPH01318140A|1988-06-20|1989-12-22|Canon Inc|Multiprocessor system|
CN101883446B|2010-06-28|2014-03-26|华为终端有限公司|Secure digital control chip and data communication method|
CN202523087U|2012-04-11|2012-11-07|西北农林科技大学|Radio frequency identification -based self-service voice system|
CN104063345A|2013-03-21|2014-09-24|深圳市振华微电子有限公司|SATA bridge device|
US9766648B2|2013-07-16|2017-09-19|Ford Global Technologies, Llc|Controller system coordinated using a timing signal and method of controller coordination using a timing signal|
JP6719894B2|2015-12-04|2020-07-08|キヤノン株式会社|Functional device, control device|
WO2018116314A1|2016-12-21|2018-06-28|Centre For Development Of Telematics |A method and a mirrored serial interface for transferring data|
CN107025203B|2017-03-31|2020-09-25|新华三技术有限公司|First board card, second board card and equipment|
法律状态:
优先权:
申请号 | 申请日 | 专利标题
CN201910779842.4A|CN110489359B|2019-08-22|2019-08-22|Data transmission control method and system|
[返回顶部]